JAMS Developer Guide
GetValueOrDefault<T>(String,T) Method


MVPSI.JAMS Namespace > EntryParamCollection Class : GetValueOrDefault<T>(String,T) Method
Gets property value or a default value given if there is no property value found
Syntax
'Declaration
 
Public Function GetValueOrDefault(Of T)( _
   ByVal parameterName As System.String, _
   ByVal defaultValue As T _
) As T
'Usage
 
Dim instance As EntryParamCollection
Dim parameterName As System.String
Dim defaultValue As T
Dim value As T
 
value = instance.GetValueOrDefault(Of T)(parameterName, defaultValue)
public T GetValueOrDefault<T>( 
   System.string parameterName,
   T defaultValue
)

Parameters

parameterName
defaultValue

Type Parameters

T
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

EntryParamCollection Class
EntryParamCollection Members